Skip to main content

User Model

Central User Model

The SDK uses a single User class to represent patient profiles.

class User {
int? id;
String? name;
String? phoneNumber;
String? email;
String? dateOfBirth;
String? gender; // 'male', 'female'
String? insuranceId;
String? policyNumber;
String? nationalityNumber;
int? height;
int? weight;
String? bloodType;
String? smoker; // 'yes', 'no'
String? alcoholic; // 'yes', 'no'
String? relationType;
String? maritalStatus;
String? createdAt;
String? updatedAt;
}

User Management APIs

The following methods are available via the ApiService instance:

APIParametersReturn Type
createUserUser userFuture<User>
updateUserUser userData, int userIDFuture<User>
getUserint userIDFuture<User>
getUsers{int? page, int? perPage}Future<List<User>>
deleteUserint userIDFuture<dynamic>